﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Admin.Domain;

namespace Windows.Admin.Service
{
    public interface IOrganizationService
    {
        /// <summary>
        /// 获取组织机构列表基础数据
        /// </summary>
        /// <returns></returns>
        Task<List<OrganizationResponse>> GetBasicOrganizations();
        /// <summary>
        /// 获取组织机构列表
        /// </summary>
        /// <returns></returns>
        Task<List<OrganizationResponse>> Query();
        /// <summary>
        /// 获取id的组织机构详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<OrganizationResponse> Detail(int id);
        /// <summary>
        /// 组织机构保存
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task Save(OrganizationSaveRequest request);
        /// <summary>
        /// 组织机构删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task Remove(long id);
    }
}
